<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * StockInItem
 *
 * @ORM\Table(name="ue_stock_in_item", indexes={@ORM\Index(name="ue_stock_in_item_stock_in_id_idx", columns={"stock_in_id"}), @ORM\Index(name="ue_stock_in_item_product_id_idx", columns={"product_id"}), @ORM\Index(name="ue_stock_in_item_purchase_order_id_idx", columns={"purchase_order_id"}), @ORM\Index(name="ue_stock_in_item_order_item_id_idx", columns={"order_item_id"})})
 * @ORM\Entity
 */
class StockInItem
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="qty", type="integer", nullable=true)
     */
    private $qty;

    /**
     * @var string
     *
     * @ORM\Column(name="comment", type="string", length=200, nullable=true)
     */
    private $comment;

    /**
     * @var \OrderItem
     *
     * @ORM\ManyToOne(targetEntity="OrderItem")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="order_item_id", referencedColumnName="id")
     * })
     */
    private $orderItem;

    /**
     * @var \Product
     *
     * @ORM\ManyToOne(targetEntity="Product")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="product_id", referencedColumnName="id")
     * })
     */
    private $product;

    /**
     * @var \PurchaseOrder
     *
     * @ORM\ManyToOne(targetEntity="PurchaseOrder")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="purchase_order_id", referencedColumnName="id")
     * })
     */
    private $purchaseOrder;

    /**
     * @var \StockIn
     *
     * @ORM\ManyToOne(targetEntity="StockIn")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="stock_in_id", referencedColumnName="id")
     * })
     */
    private $stockIn;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set qty
     *
     * @param integer $qty
     * @return StockInItem
     */
    public function setQty($qty)
    {
        $this->qty = $qty;

        return $this;
    }

    /**
     * Get qty
     *
     * @return integer 
     */
    public function getQty()
    {
        return $this->qty;
    }

    /**
     * Set comment
     *
     * @param string $comment
     * @return StockInItem
     */
    public function setComment($comment)
    {
        $this->comment = $comment;

        return $this;
    }

    /**
     * Get comment
     *
     * @return string 
     */
    public function getComment()
    {
        return $this->comment;
    }

    /**
     * Set orderItem
     *
     * @param \Ue\ErpBundle\Entity\OrderItem $orderItem
     * @return StockInItem
     */
    public function setOrderItem(\Ue\ErpBundle\Entity\OrderItem $orderItem = null)
    {
        $this->orderItem = $orderItem;

        return $this;
    }

    /**
     * Get orderItem
     *
     * @return \Ue\ErpBundle\Entity\OrderItem 
     */
    public function getOrderItem()
    {
        return $this->orderItem;
    }

    /**
     * Set product
     *
     * @param \Ue\ErpBundle\Entity\Product $product
     * @return StockInItem
     */
    public function setProduct(\Ue\ErpBundle\Entity\Product $product = null)
    {
        $this->product = $product;

        return $this;
    }

    /**
     * Get product
     *
     * @return \Ue\ErpBundle\Entity\Product 
     */
    public function getProduct()
    {
        return $this->product;
    }

    /**
     * Set purchaseOrder
     *
     * @param \Ue\ErpBundle\Entity\PurchaseOrder $purchaseOrder
     * @return StockInItem
     */
    public function setPurchaseOrder(\Ue\ErpBundle\Entity\PurchaseOrder $purchaseOrder = null)
    {
        $this->purchaseOrder = $purchaseOrder;

        return $this;
    }

    /**
     * Get purchaseOrder
     *
     * @return \Ue\ErpBundle\Entity\PurchaseOrder 
     */
    public function getPurchaseOrder()
    {
        return $this->purchaseOrder;
    }

    /**
     * Set stockIn
     *
     * @param \Ue\ErpBundle\Entity\StockIn $stockIn
     * @return StockInItem
     */
    public function setStockIn(\Ue\ErpBundle\Entity\StockIn $stockIn = null)
    {
        $this->stockIn = $stockIn;

        return $this;
    }

    /**
     * Get stockIn
     *
     * @return \Ue\ErpBundle\Entity\StockIn 
     */
    public function getStockIn()
    {
        return $this->stockIn;
    }
}
